package Java;
import java.util.Scanner;
public class JAVA {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		StringBuilder str=new StringBuilder("");
		while(sc.hasNextInt()){
			int n=sc.nextInt();
			int start= sc.nextInt();
			int end=sc.nextInt();
			for(int i=0;i<n;i++){
				str.append(i);
			}
			System.out.println(str.substring(start,end));
		}

	}

}
